<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp"%>
<html>
<head>
<title>审核主页面_财务经理</title>
<script type="text/javascript" src="${ctx }/scripts/common.js"></script>
<script type="text/javascript" src="${ctx }/scripts/ajaxException.js"></script>
<script type="text/javascript" src="${ctx }/scripts/common/prototype.js"></script>
<script type="text/javascript">

  var currentGoOutId;//当前选中的退伙Id
  var currentGoOutStatus; //当前选中的退伙状态

 /**
  * 功能描述： 打开"退伙申请详细" 页面
  * @author 张红丽
  * Created on: 2008-8-14
  */
 function openExamineDetail(){
   var url = "${ctx}/house_proRightModificationAction.do?method=initGoOutExamineDetail&keyword="+currentGoOutId;
   top.windowOpen(url, "goOutExamineDetail", "退伙申请详细", 300, 700,true,"ExamineDetailWinIfm");
 }

  /**
   *　功能描述：保存当前选中的退伙信息
   */
   function setCurrentGoOut(id,status){
      currentGoOutId = id;
      currentGoOutStatus = status;
      document.getElementById("goOutId").value = id;
   }

    // 功能描述：审核
    function auditing(){
      	var url = "${ctx}/house_proRightModificationAction.do?method=checkAudit";
  		new Ajax.Request(url,
    	{
    		method:'post',
    		parameters:{keyword:currentGoOutId,type:'002'},
    		onSuccess:function(response){
    			ajaxSubmitException(response.responseText);
    			var flag = response.responseText;
    			if (flag == "true"){
	    	   		var url = "${ctx}/house_proRightModificationAction.do?method=initChargeExamine&goOutId="+currentGoOutId+"&type=002";
	    			top.windowOpen(url,"goOutExamine","退伙申请审核", 560, 700,true,"goOutExamineWinIfm");
	    		}
    		}
    	});
    }

       // 功能描述：反审核
       function antiAudit(){
			var url = "${ctx}/house_proRightModificationAction.do?method=checkAntiAudit";
			new Ajax.Request(url,
			{
				method:'post',
    			parameters:{keyword:currentGoOutId,type:'002'},
    			onSuccess:function(response){
    				ajaxSubmitException(response.responseText);
    				var flag = response.responseText;
    				if (flag == "true"){
    					AskConfirm("${key.isAntiAudit_Msg}","proRightModIfm","${ctx}/house_proRightModificationAction.do?method=antiAudit&goOutId="+currentGoOutId+"&type=002");
    				}
    			}
			});
       	}
  /**
  * 功能描述： 刷新列表
  */
  function refreshList(){
	var url = "${ctx}/house_proRightModificationAction.do?method=goOutListTwo";
	window.location.href=url;
  }

/*
  function goOutPrint(){
  	var currentGoOutId = document.getElementById("goOutId").value;
  	if (currentGoOutId == null || currentGoOutId ==""){
  		Alert("请选择一条数据");
  		return ;
  	}
	 document.getElementById("printFrom").submit();
  }
  */
</script>
</head>
<body>

<div   class="tab_bgline" >
	<form id="printFrom" name="printFrom" method="post" action="${ctx}/Report.jas?ReportName=GoOutReport" target="_blank">
		<input type="hidden" name="goOutId" id="goOutId" value="">
	</form>
<div style="overflow:auto; height:450px;width:100%">
 <ec:ceTable items="goOutList"
	action="${ctx}/house_proRightModificationAction.do?method=goOutListTwo"
	var="goOutItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15" >
	<ec:ceRow styleClass="grid" onclick="setCurrentGoOut('${goOutItem.keyword }','${goOutItem.statuCode }');" ondblclick="openExamineDetail(); "  onContextMenu="return ShowContextMenu(event,'quick_rightmenu');">
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.houseNumber }" property="houseNumber" sortable="true" width="10%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.clients }" property="clients" width="10%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.copyMeterWaterReading }" property="copyMeterWaterReading"  width="10%" cell="number" format="###,##0.00"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.copyMeterAmmeterReading }" property="copyMeterAmmeterReading" width="10%" cell="number" format="###,##0.00"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.houseDesc }" property="houseDesc"  width="11%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.checker }" property="checker"  width="11%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.goods }" property="goods"  width="11%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.statuName }" property="statuName"  width="11%"/>
		<ec:parameter name="houseNumber" value="${houseNumber }"></ec:parameter>
		<ec:parameter name="houseHolderName" value="${houseHolderName }"></ec:parameter>
	</ec:ceRow>
</ec:ceTable>

 </div>
 </div>
  <div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_menu2" onMouseOver="showmy2menu('quick_rightmenu')"  onMouseOut="hidden2menu('quick_rightmenu')" >
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
           <pms:AuthTag authName="house_proRightModificationAction.do?method=initGoOutExamine">
            <tr>
             <td class="quickMenu_toolbarico"><a href="#"  onClick="auditing();"onFocus="this.blur()"><img src="${ctx }/images/ico_shenpi_zong1.gif" border="0" align="absbottom" />&nbsp;${key.auditing }</a></td>
           </tr>
          </pms:AuthTag>
          <pms:AuthTag authName="house_proRightModificationAction.do?method=antiAudit">
		   <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="antiAudit();"onFocus="this.blur()"><img src="${ctx }/images/ico_submitunpass.gif" border="0" align="absbottom" />&nbsp;${key.antiAudit }</a></td>
          </tr>
          </pms:AuthTag>

      </table></td>
    </tr>
  </table>
</div>

</body>
</html>